<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改密码</title>
 <script type="text/javascript">
	function checkRegister(){
		var password = document.getElementById("user.ofPassword1").value;
		var password2 = document.getElementById("user.ofPassword2").value;
		 if(password.toString().length < 6){
			alert("密码长度不能小于6位");
			return false;
		}else if(password != password2){
			alert("两次密码输入不一致，请重新输入");
			return false;
		}
		return true;
	}
</script>
</head>
<body bgcolor="#FAFBE7">
<center>
  	<form action="updateUserPassword.action" method="post">
  	用户名：<input type="text" readonly="readonly" name="userName" value="<%=session.getAttribute("userName")%>"> <br/><br/>
  	    新密码：<input type="password" name="ofPassword1" id="user.ofPassword1" ><br/><br/>
  	确认新密码：<input type="password" name="ofPassword2" id="user.ofPassword2"><br/>
  	<input type="submit" value="确定" onclick="return checkRegister()"">&nbsp;&nbsp;&nbsp;&nbsp; <a href="<%=basePath%>orderManager/Userindex.jsp">返回</a>
  	
  	</form>
  
  </center>

  </body>
</html>
